@charset "utf-8";


/*************************排版布局******************************************/
/*************************产品推荐*****************************/
.recommend {
    position: relative;
    
    .content {
        font-size: 0;
        overflow: hidden;
        
        .inner {
            white-space: nowrap;
            width: 100%;
            
            .item {
                display: inline-block;
                vertical-align: top;
                width: 25%;
                overflow: hidden;
                border-left: 1px solid transparent;
                
                &:not(:nth-child(4n+1)) {
                    border-color: #e5e5e5;
                }
            }
        }
        
        .control {
            position: absolute;
            bottom: 70px;
            transform: translateY(50%);
            text-align: center;
            color: #c8c8c8;
            cursor: pointer;
            border-radius: 2px;
            transition: background-color 500ms ease;
            padding: 15px 5px;
            
            span {
                font-size: 32px;
                position: relative;
            }
            
            &:hover {
                background-color: #efefef;
            }
            &:active {
                span {
                    left: 1px;
                    top: 1px;
                }
            }
        }
        
        .prev {
            left: -70px;
        }
        
        .next {
            right: -70px;
        }
    }
}


/*************************定制骑行服 & 定制跑步服 & 定制铁三角*****************************/

.cycling_wear, .running_wear, .iron3suits {
    .content {
        .links {
            display: -webkit-flex;
            display: flex;
            flex-direction: column;
            width: 18%;
            
            .class {
                display: block;
                margin-bottom: 10px;
            }
            
            .item {
                display: block;
                flex: 1;
                position: relative;
                text-align: center;
                
                a {
                    -webkit-align-items: center;
                    -ms-flex-align: center;
                    align-items: center;
                    display: -webkit-flex;
                    display: flex;
                    position: absolute;
                    width: 100%;
                    height: 100%;
                    -webkit-justify-content: center;
                    justify-content: center;
                    transition: all 300ms ease;
                    background-color: #efefef;
                    &:hover {
                        background-color: #dfdfdf;
                    }
                }
            }
        }
    }
}


/*************************定制骑行服*****************************/

.cycling_wear {
    .content {
        .links {
            height: 552px;
            
            .class {
                height: 104px;
            }
            
            .item {
                min-height: 43.8px;
                line-height: 43.8px;
            }
        }
        
        .classify {
            display: block;
            width: 25%;
            margin-left: 1%;
            
            .item {
                display: block;
                height: 271px;
                
                &:not(:first-child) {
                    margin-top: 10px;
                }
            }
        }
        
        .goods {
            display: block;
            width: 55%;
            margin-left: 1%;
            font-size: 0;
            
            .item {
                display: inline-block;
                width: 32.12121212121212%;
                
                &:not(:nth-child(3n)) {
                    margin-right: 1.81818181818182%;
                }
                
                &:not(:nth-child(-n+3)) {
                    margin-top: 10px;
                }
            }
        }
    }
}


/*************************定制跑步服 & 定制铁三角*****************************/

.running_wear, .iron3suits {
    .content {
        .card {
            display: block;
            font-size: 0;
            margin-bottom: 10px;
            
            .item {
                display: inline-block;
                overflow: hidden;
                width: 49.5%;
                height: 196px;
                &:not(:first-child) {
                    margin-left: 1%;
                }
            }
        }
        
        .links {
            height: 271px;
            
            .class {
                height: 120px;
            }
        }
        
        .goods {
            display: block;
            width: 81%;
            margin-left: 1%;
            font-size: 0;
            
            .item {
                display: inline-block;
                width: 24.07407407407407%;
                
                &:not(:nth-child(4n)) {
                    margin-right: 1.23456790123457%
                }
                
                &:not(:nth-child(-n+4)) {
                    margin-top: 10px;
                }
            }
        }
    }
}


/*************************定制跑步服*****************************/

.running_wear {
    .content {
        .links {
            .item {
                min-height: 45.17px;
                line-height: 45.17px;
            }
        }
    }
}


/*************************定制铁三角*****************************/

.iron3suits {
    .content {
        .links {
            .item {
                min-height: 47px;
                line-height: 47px;
            }
        }
    }
}


/*************************定制休闲服*****************************/

.casual_wear {
    .content {
        .classify {
            display: block;
            font-size: 0;
            
            .item {
                display: inline-block;
                width: 24.25%;
                height: 273px;
                &:not(:first-child) {
                    margin-left: 1%;
                }
            }
        }
    }
}


/*************************品牌专区*****************************/

.brands {
    .content {
        .links {
            display: block;
            font-size: 0;
            
            .item, .more {
                display: inline-block;
                vertical-align: middle;
                width: 16.16666666666666%;
                height: 75px;
                line-height: 75px;
                
                &:not(:nth-child(6n)) {
                    margin-right: 0.6%;
                }
                
                &:not(:nth-child(-n+6)) {
                    margin-top: 6px;
                }
            }
            
            .more {
                text-align: center;
                text-transform: uppercase;
                
                a {
                    display: block;
                    padding: 0 20px;
                    height: 100%;
                    font-size: 13px;
                    font-weight: bold;
                    transition: border-color 500ms ease;
                    border: 1px solid transparent;
                    
                    &:hover {
                        border-color: #efefef;
                    }
                    
                    &::after {
                        content: ">";
                        margin-left: 3px;
                    }
                }
            }
        }
    }
}


/*************************模块样式******************************************/
/*************************轮播图*****************************/
.carousel {
    display: block;
    font-size: 0;
    position: relative;
    overflow: hidden;
    
    * {
        display: block;
    }
    
    .inner {
        white-space: nowrap;
        width: 100%;
        height: 360px;
        
        .item {
            display: inline-block;
            vertical-align: top;
            width: 100%;
            height: 100%;
            overflow: hidden;
            
            a {
                width: 100%;
                height: 100%;
                
                img {
                    margin: auto;
                    height: 100%;
                }
            }
            
            
        }
    }
    
    .indicators {
        margin-top: 3px;
        
        li {
            display: inline-block;
            cursor: pointer;
            border: 3px solid transparent;
            background-color: #efefef;
            background-clip: content-box;
            overflow: hidden;
            position: relative;
            width: 20%;
            height: 98px;
            
            img {
                position: absolute;
                left: 50%;
                top: 0;
                transform: translateX(-50%);
                height: 100%;
            }
        }
        
        li.active {
            border-color: #eb413d;
            background-color: #efefef;
        }
        
        &:hover {
            ~ .control {
                opacity: 0;
                visibility: hidden;
            }
        }
    }
    
    .control {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        margin-top: -51px;
        width: 56px;
        height: 80px;
        line-height: 80px;
        text-align: center;
        background-color: rgba(0, 0, 0, 0.6);
        color: #ffffff;
        cursor: pointer;
        opacity: 0;
        visibility: hidden;
        transition: all 500ms ease;
        
        span {
            font-size: 32px;
            position: relative;
        }
        
        &:hover {
            background-color: #eb413d;
        }
        &:active {
            span {
                left: 1px;
                top: 1px;
            }
        }
    }
    
    .prev {
        left: 0;
    }
    
    .next {
        right: 0;
    }
    
    &:hover {
        .control {
            opacity: 1;
            visibility: visible;
        }
    }
}


/*************************栏目标题*****************************/

.caption {
    position: relative;
    margin: 30px 0;
    display: block;
    
    * {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1em;
        display: block;
    }
    
    h2 {
        padding: 0 150px;
        font-size: 16px;
        text-align: center;
        color: #333333;
    }
    
    a {
        font-size: 13px;
        text-align: right;
        width: 120px;
        position: absolute;
        right: 0;
        bottom: 0;
    }
}


/*************************推荐商品信息块*****************************/

.module_recommend {
    display: block;
    width: 100%;
    height: 140px;
    position: relative;
    padding: 10px;
    
    * {
        display: block;
    }
    
    .pic_box {
        position: absolute;
        left: 10px;
        top: 10px;
        width: 100px;
        height: 120px;
        overflow: hidden;
        transition: all 200ms ease;
        &:hover {
            transform: scale(1.1);
        }
        
        img {
            height: 100%;
            margin: auto;
        }
    }
    
    .pro_info {
        margin-left: 110px;
        
        > * {
            overflow: hidden;
            
            &:not(p) {
                text-overflow: ellipsis;
            }
        }
        
        p {
            font-size: 15px;
            word-break: break-all;
            white-space: normal;
            line-height: 1.2em;
            height: 2.4em;
            margin-top: 12px;
            
            a {
                display: inline;
            }
        }
        
        > a {
            display: inline-block;
            padding: 0 6px;
            margin: 5px 0;
            max-width: 50%;
            font-size: 13px;
            text-align: center;
            transition: all 500ms ease;
            background-color: #eb413d;
            color: #ffffff;
            
            &:not(:first-of-type) {
                background-color: #000000;
            }
            
            &:hover {
                opacity: 0.7;
            }
        }
        
        em {
            font-size: 14px;
        }
    }
}


/*************************banner*****************************/

.banner {
    margin: 30px 0;
    display: block;
    width: 100%;
    
    * {
        display: block;
    }
    
    a {
        width: 100%;
        
        img {
            transition: all 500ms ease;
            width: 100%;
            &:hover {
                -webkit-filter: brightness(1.3);
                filter: brightness(1.3);
            }
        }
    }
}


/*************************商品信息块*****************************/

.module_proCube {
    border: 1px solid #efefef;
    overflow: hidden;
    display: block;
    
    .pic_box {
        display: block;
        overflow: hidden;
        position: relative;
        margin: 20px;
        transition: all 300ms ease;
        text-align: center;
        height: 148px;
        &:hover {
            transform: scale(1.1);
        }
        
        img {
            display: block;
            margin: auto;
            height: 100%;
        }
    }
    
    .pro_info {
        background-color: #efefef;
        padding: 10px;
        position: relative;
        
        * {
            display: block;
        }
        
        p {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            font-size: 14px;
            line-height: 1em;
            color: #444f58;
            
            &:not(:first-of-type) {
                margin-top: 0.5em;
                font-size: 13px;
            }
            
            * {
                display: inline;
            }
        }
        
        .diy {
            line-height: 0;
            text-align: right;
            
            a {
                font-size: 0;
                display: inline-block;
                background-color: #000000;
                border-radius: 11px;
                width: 86px;
                height: 21px;
                line-height: 21px;
                text-align: center;
                overflow: hidden;
                
                > * {
                    display: inline-block;
                    vertical-align: middle;
                    position: relative;
                    transition: all 200ms ease;
                }
                
                img {
                    width: 13px;
                    height: 13px;
                    margin-right: 5px;
                    border-radius: 50%;
                    left: 0;
                }
                
                span {
                    width: 52px;
                    font-size: 13px;
                    color: #ffffff;
                    right: 0;
                    white-space: nowrap;
                    overflow: hidden;
                    text-overflow: ellipsis;
                }
                
                &:hover {
                    img {
                        left: 57px;
                    }
                    
                    span {
                        color: #eb413d;
                        right: 18px;
                    }
                }
                
                &:active {
                    padding-top: 1px;
                    padding-left: 2px;
                }
            }
        }
    }
}


/*************************分类图片*****************************/

.module_classify {
    width: 100%;
    height: 100%;
    display: block;
    
    * {
        display: block;
    }
    
    a {
        border: 1px solid #efefef;
        position: relative;
        width: 100%;
        height: 100%;
        
        img {
            margin: auto;
            height: 100%;
            transition: -webkit-filter 500ms ease,
                        filter 500ms ease;
        }
        
        p {
            position: absolute;
            left: 0;
            bottom: 0;
            width: 100%;
            background-color: rgba(241, 59, 51, 0.9);
            color: #ffffff;
            padding: 12px 10px;
            transition: background-color 300ms ease;
            
            span {
                font-size: 20px;
                padding: 6px 10px;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }
            
            i {
                text-align: right;
                font-size: 13px;
            }
            
            &:hover {
                background-color: #eb413d;
            }
        }
        
        &:hover {
            img {
                -webkit-filter: brightness(1.2);
                filter: brightness(1.2);
            }
        }
    }
}


/*************************卡片*****************************/

.module_card {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    display: table;
    
    * {
        display: block;
    }
    
    a {
        border: 1px solid #efefef;
        display: table-cell;
        vertical-align: middle;
        width: 100%;
        height: 100%;
        
        img {
            position: absolute;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            z-index: -1;
            height: 100%;
            transition: -webkit-filter 500ms ease,
                        filter 500ms ease;
        }
        
        p {
            width: 100%;
            text-align: center;
            color: #ffffff;
            
            * {
                padding: 0 20px;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }
            
            strong {
                font-size: 24px;
                font-weight: bold;
                text-transform: uppercase;
                margin-bottom: 5px;
            }
            
            em {
                font-size: 16px;
            }
        }
        
        &:hover {
            img {
                -webkit-filter: brightness(1.2);
                filter: brightness(1.2);
            }
        }
    }
}


/*************************链接*****************************/

.module_links {
    width: 100%;
    height: 100%;
    position: relative;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    display: -webkit-flex;
    display: flex;
    overflow: hidden;
    
    img {
        display: block;
        max-width: 100%;
        max-height: 100%;
        margin: auto;
    }
    
    p {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        padding-left: 8px;
        letter-spacing: 8px;
        color: #ffffff;
        font-size: 20px;
        
        &::after {
            content: "";
            display: block;
            height: 2px;
            background-color: #ffffff;
            position: absolute;
            bottom: -8px;
            left: 10px;
            right: 10px;
        }
    }
}


/*************************品牌*****************************/

.module_brands {
    width: 100%;
    height: 100%;
    border: 1px solid #f8f8f8;
    display: block;
    
    * {
        display: block;
    }
    
    a {
        width: 100%;
        height: 100%;
        background-color: #f8f8f8;
        overflow: hidden;
        transition: -webkit-filter 300ms ease,
                    filter 300ms ease;
        
        img {
            height: 100%;
            margin: auto;
        }
        
        &:hover {
            -webkit-filter: brightness(1.1);
            filter: brightness(1.1);
        }
    }
}
